[IE 7/8] Loading HTML content in via Javascript nulls my <title> tag in some instances

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-04-15T17:58:39Z Indexed on 2010/04/15 18:23 UTC
Read the original article Hit count: 276

This is an Explorer only problem and the symptoms are:

I have links that when clicked will load in HTML chunks (none of which contain html header tags) using javascript. The html chunks are placed in various <div>s around the page, perhaps 3 different places with 3 different chunks brought in via javascript.

When these chunks load in the <title> tag of the page gets set to <title></title> for some unknown (to me) reason. I've used the IE developer toolbar to confirm this by inspecting the DOM tree.

I have other pages that do similar things but it does not seem to be a problem there.

© Stack Overflow or respective owner

Related posts about internet-explorer

Related posts about JavaScript